<template>
<a-modal
      title="审核界面"
      :visible="AuditHandleVisible"
      @ok="handleSave"
      @cancel="handleClose"
    >
      <a-form>
          <div>
          <a-form-item label="录取状态">
              <a-select :allowClear="true" showSearch optionFilterProp="children" v-model="postParams.shzt">
                <a-select-option v-for="i in [{name:'通过',id:'02'},{name:'拒绝',id:'01'}]" :key="i.id" :value="i.id">{{ i.name }}</a-select-option>
              </a-select>
            </a-form-item>
            </div>
            <div>
            <a-form-item label="说明">
              <a-textarea placeholder="请输入..." v-model="postParams.shyj" :rows="4"/>
            </a-form-item>
            </div>
      </a-form>
    </a-modal>
</template>

<script>
// import moment from 'moment'

export default {
  props: {
    AuditHandleVisible: {
      default: false
    },
    info: {
      default: () => ({})
    }
  },
  data () {
    return {
      postParams: {
        shyj: '',
        shzt: '',
        id: ''
      }
    }
  },
  watch:{
    info(val){
      this.postParams={
        id:val
      }
      console.log(val)
    }
  },
  created () {
  },
  methods: {
    handleSave () {
      this.$api.doctorRecruit.examineSh(this.postParams).then(res=>{
          this.$emit('success')
      })
    },
    handleClose () {
      this.$emit('quit')
    }
  }
}
</script>
